package com.lemontree.spring3.day03;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by lemontree on 2017/7/27.
 */
public class SpringTest {
    @Test
    public void test() {
        ApplicationContext applicationContext =
                new ClassPathXmlApplicationContext("com/lemontree/spring3/day03/day03.xml");
        Instrumentalist instrumentalist = (Instrumentalist) applicationContext.getBean("instrumentalist");
        System.out.println(instrumentalist.getSong());
    }
}
